package com.chenyongjing.design.pattern.visitor.kpi;

/**
 * @Author chen
 * @Date 2022/12/8 22:47
 */
public class CTOVisitor implements IVisitor{
    @Override
    public void visit(Engineer engineer) {
        System.out.println("工程师"+engineer.name+"， 代码行数："+engineer.getCodeLine());
    }

    @Override
    public void visit(Manager manager) {
        System.out.println("项目经理"+manager.name+"，项目数："+manager.getProducts());
    }
}
